package action;

import core.Event;
import core.Utility;

public abstract class Action 
{
	public Action get(String command) {

		String value;
		value=Utility.getHead(command);

		if(value == "delete") {
			Action obj = new Delete();
			return obj;	
		}
		else if(value == "find") {
			Action obj = new Find();
			return obj;
		}
		else if(value == "undo") {
			Action obj = new Undo();
			return obj;
		}
		return null;		
	}
	abstract void execute(String s);
	abstract void execute();
	abstract void execute(Event e);
}
